<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <title>出入院记录</title>
    <div th:insert="user/common::head"></div>
</head>

<body class="">
    <div class="wrapper ">
        <div th:insert="~{user/common::sidebar(active='log_list.html')}"></div>
        <div class="main-panel">
            <!-- Navbar导航栏 -->
            <nav th:replace="~{user/common::navbar}"></nav>
            <!-- End Navbar -->
            <div class="panel-header panel-header-sm">
            </div>
            <div class="content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <h4 class="card-title">出入院记录</h4>
                            </div>
                            <div class="card-body">
                                <div class="table-responsive">
                                    <table class="table">
                                        <thead class="text-primary">
                                            <th>
                                                记录ID
                                            </th>
                                            <th>
                                                病人ID
                                            </th>
                                            <th>
                                                病人姓名
                                            </th>
                                            <th>
                                                病人联系方式
                                            </th>
                                            <th>
                                                医师工作证号
                                            </th>
                                            <th>
                                                主治医师
                                            </th>
                                            <th>
                                                记录日期
                                            </th>
                                            <th>
                                                办理业务
                                            </th>

                                        </thead>
                                        <tbody>
                                            <tr th:each="log,index:${logs}">
                                                <td th:text="${log.getLogId()}">
                                                    记录ID
                                                </td>
                                                <td th:text="${log.getPatientId()}">
                                                    病人ID
                                                </td>
                                                <td th:text="${log.getPatientName()}">
                                                    病人姓名
                                                </td>
                                                <td th:text="${log.getPatientPhone()}">
                                                    病人联系方式
                                                </td>
                                                <td th:text="${log.getDoctorId()}">
                                                    医生ID
                                                </td>
                                                <td th:text="${log.getDoctorName()}">
                                                    医生姓名
                                                </td>
                                                <td th:text="${#dates.format(log.getLogDate(),'yyy-MM-dd HH:mm:ss')}">
                                                    记录日期
                                                </td>
                                                <td th:text="${log.getInOrOut()}">
                                                    出院还是入院
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--底部footer-->
            <footer th:replace="~{user/common::footer}"></footer>
        </div>
    </div>
</body>

<!--通用footerJs-->
<script th:replace="~{user/common::footerJs}"></script>

</html>
